#include "linux_def.h"
#include "core.h"
#include "event.h"

event_t	*posted_events;
event_t	*posted_accept_events;


void event_process_posted(cycle_t *cycle, event_t **posted)
{
	event_t	*ev;

	for (;;){
		ev = (event_t *)*posted;

		if (ev == NULL)
			return;

		delete_posted_event(ev);

		ev->handler(ev);
	}
}
